package request

type TmallServiceCodeConsumeRequest struct {
	/*
	   核销帐号     */
	OperatorNick *string `json:"operator_nick" required:"true" `
	/*
	   核销码     */
	ConsumeCode *string `json:"consume_code" required:"true" `
	/*
	   门店id     */
	ShopId *string `json:"shop_id" required:"true" `
}

func (s *TmallServiceCodeConsumeRequest) SetOperatorNick(v string) *TmallServiceCodeConsumeRequest {
	s.OperatorNick = &v
	return s
}
func (s *TmallServiceCodeConsumeRequest) SetConsumeCode(v string) *TmallServiceCodeConsumeRequest {
	s.ConsumeCode = &v
	return s
}
func (s *TmallServiceCodeConsumeRequest) SetShopId(v string) *TmallServiceCodeConsumeRequest {
	s.ShopId = &v
	return s
}

func (req *TmallServiceCodeConsumeRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.OperatorNick != nil {
		paramMap["operator_nick"] = *req.OperatorNick
	}
	if req.ConsumeCode != nil {
		paramMap["consume_code"] = *req.ConsumeCode
	}
	if req.ShopId != nil {
		paramMap["shop_id"] = *req.ShopId
	}
	return paramMap
}

func (req *TmallServiceCodeConsumeRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
